<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMiniProgramMainTabTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mini_program_main_tab', function (Blueprint $table) {
            $table->increments('id');
            $table->string('mini_type')->nullable()->comment('小程序类型');
            $table->string('icon')->nullable()->comment('未选中图标');
            $table->string('s_icon')->nullable()->comment('选中后图标');
            $table->string('name')->nullable()->comment('名称');
            $table->string('action')->nullable()->comment('动作');
            $table->text('data')->nullable()->comment('参数');
            $table->integer('sort')->default('0')->nullable()->comment('排序值');
            $table->tinyInteger('is_show')->default('1')->nullable()->comment('是否显示 1-是 0-否');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mini_program_main_tab');
    }
}
